﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title></title>
    <script src="../jquery-1.9.1.min.js" type="text/javascript"></script>
  <script src="layer.js"></script>
</head>
<body>
<script>
    ; !function () {


        //页面一打开就执行，放入ready是为了layer所需配件（css、扩展模块）加载完毕
        layer.ready(function () {
            //官网欢迎页
            layer.open({
                type: 2,
                title: 'layer弹层组件官网',
                fix: false,
                maxmin: true,
                shadeClose: true,
                area: ['1100px', '600px'],
                content: 'http://sentsin.com/jquery/layer/?form=local',
                end: function () {
                    layer.tips('Hi', '#about', { tips: 1 })
                }
            });
        });

        //关于
        $('#about').on('click', function () {
            layer.alert(layer.v + ' - 贤心出品 sentsin.com');
        });

    } ();
</script>
</body>
</html>
